package com.ym.b2b.order.dao.impl;

import org.springframework.dao.DataAccessException;
import org.springframework.stereotype.Repository;

import com.ym.b2b.commons.dao.BaseDao;
import com.ym.b2b.order.dao.EmSOrderAddressDao;
import com.ym.b2b.order.sqlbean.EmSOrderAddress;

@Repository
public class EmSOrderAddressDaoImpl<T> extends BaseDao<T> implements EmSOrderAddressDao {

    @Override
    public Object insertEmSOrderAddress(EmSOrderAddress emSOrderAddress) throws DataAccessException {
        return insert("EmSOrderAddress.insertEmSOrderAddress", emSOrderAddress);
    }

    @Override
    public EmSOrderAddress showEmSOrderAddressDetail(EmSOrderAddress emSOrderAddress) throws DataAccessException {
        return (EmSOrderAddress) find("EmSOrderAddress.showEmSOrderAddressDetail", emSOrderAddress);
    }

    @Override
    public int deleteEmSOrderAddress(EmSOrderAddress emSOrderAddress) throws DataAccessException {
        return delete("EmSOrderAddress.deleteEmSOrderAddress", emSOrderAddress);

    }

}
